package com.xca.znb.presenter;

import com.xca.znb.entity.Goods;
import com.xca.znb.model.imodel.IHome;

import java.util.List;

public class HomePresenter {
    private IHome iHome ;
    public HomePresenter(IHome iHome){this.iHome = iHome ;}

    public List<Goods> getAllGoods(){
        return iHome.getAllGoods() ;
    }
    public List<Goods> getGoodsByType(String type){
        return iHome.getGoodsByType(type) ;
    }
    public void addOrUpdateFoot(int goodsId, String user, String time) {
        iHome.addOrUpdateFoot(goodsId, user, time);
    }
}
